package com.hcy.Loadbalancer;


class SingletonLB {
    private static class SingletonHolder {
        private static final SingletonLB INSTANCE = new SingletonLB();
    }

    private SingletonLB() {}

    public static SingletonLB getInstance() {
        return SingletonHolder.INSTANCE;
    }

    public void addServer() {
        // 实现添加服务器的逻辑
        System.out.println("服务器添加成功！");
    }

    public void removeServer() {
        // 实现移除服务器的逻辑
        System.out.println("服务器移除成功！");
    }

    public void balanceLoad() {
        // 实现负载均衡的逻辑s
        System.out.println("负载均衡处理成功！");
    }
}
